﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Fuse8.ContentManagementFramework.Domain.Commands.CommandParameters.CmsUser;
using Fuse8.DomainFramework.Domain;

namespace Fuse8.ContentManagementFramework.Domain.Commands.CmsUser
{
    public abstract class CmsUserGetByEmailCommand : BaseEntityParameterCommand<Domain.CmsUser, CmsUserGetByEmailCommandParameter>
    {
        public override string CacheKey
        {
            get
            {
                return string.Format("SiteGroup_{0};Site_{1};Email_{2}",
                    CommandParameter.SiteGroupId.GetValueOrDefault(0),
                    CommandParameter.SiteId.GetValueOrDefault(0),
                    CommandParameter.Email);
            }
        }

        public override string CommandName
        {
            get
            {
                return "CmsUserGetByEmailCommand";
            }
        }
    }
}
